/*
 *  Copyright 2022 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

.loader {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-left-color: #0079ff;
  background: transparent;
  animation: rotate 1s linear infinite;
  margin: 6rem auto;
}

.loader.loader-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
  margin: auto;
}

.loader.loader-x-sm {
  width: 14px;
  height: 14px;
  border-width: 1.5px;
  margin: auto;
}

.loader.loader-success {
  border-left-color: #51c41a;
}

.loader.loader-error {
  border-left-color: #ff4c3b;
}

.loader.loader-white {
  border-color: #ffffff;
  border-right-color: transparent;
}

@keyframes rotate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
